package com.ym521.test

import androidx.core.util.lruCache
import org.junit.Test

import org.junit.Assert.*

/**
 * Example local unit test, which will execute on the development machine (host).
 *
 * See [testing documentation](http://d.android.com/tools/testing).
 */
class ExampleUnitTest {
    @Test
    fun addition_isCorrect() {
        assertEquals(4, 2 + 2)
    }

    @Test
    fun testLruCache() {
        val lruCache = lruCache(10){ b: Boolean, k: Long, o: String, n: String? ->
            println("b:$b    k:$k  o:$o   n:$n")
        }
        for (i in 0..100){
            lruCache.put(i.toLong(),"index-$i")
        }
    }
}